# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Category'
        db.create_table('home_category', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('home', ['Category'])

        # Adding model 'Regions'
        db.create_table('home_regions', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('id_parent', self.gf('django.db.models.fields.IntegerField')(default=-1, null=True)),
        ))
        db.send_create_signal('home', ['Regions'])

        # Adding model 'Announcements'
        db.create_table('home_announcements', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['home.Regions'], null=True)),
            ('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['home.Category'])),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('short_description', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('description', self.gf('django.db.models.fields.TextField')(null=True)),
            ('a_date', self.gf('django.db.models.fields.DateField')()),
            ('popularity', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
        ))
        db.send_create_signal('home', ['Announcements'])

        # Adding model 'News'
        db.create_table('home_news', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('category', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['home.Category'])),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('short_description', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('description', self.gf('django.db.models.fields.TextField')(null=True)),
            ('a_date', self.gf('django.db.models.fields.DateField')()),
            ('popularity', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
        ))
        db.send_create_signal('home', ['News'])

        # Adding model 'Section'
        db.create_table('home_section', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['home.Regions'])),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('short_description', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
        ))
        db.send_create_signal('home', ['Section'])

        # Adding model 'Goods'
        db.create_table('home_goods', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('region', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['home.Regions'])),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('section', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['home.Section'])),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('short_description', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('description', self.gf('django.db.models.fields.TextField')(null=True)),
            ('a_date', self.gf('django.db.models.fields.DateField')()),
            ('popularity', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
            ('iLID', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('iUID', self.gf('django.db.models.fields.CharField')(max_length=250)),
        ))
        db.send_create_signal('home', ['Goods'])

        # Adding model 'Partners'
        db.create_table('home_partners', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('url_to', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('description', self.gf('django.db.models.fields.TextField')(null=True)),
        ))
        db.send_create_signal('home', ['Partners'])

        # Adding model 'Albums'
        db.create_table('home_albums', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('description', self.gf('django.db.models.fields.TextField')(null=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
        ))
        db.send_create_signal('home', ['Albums'])

        # Adding model 'Photos'
        db.create_table('home_photos', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('album', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['home.Albums'])),
            ('url_pic', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('description', self.gf('django.db.models.fields.TextField')(null=True)),
            ('a_date', self.gf('django.db.models.fields.DateField')()),
            ('popularity', self.gf('django.db.models.fields.IntegerField')(null=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
        ))
        db.send_create_signal('home', ['Photos'])

        # Adding model 'BillingLog'
        db.create_table('home_billinglog', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('a_date', self.gf('django.db.models.fields.DateField')()),
            ('reason', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('value', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
        ))
        db.send_create_signal('home', ['BillingLog'])

        # Adding model 'BillingX'
        db.create_table('home_billingx', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('a_date', self.gf('django.db.models.fields.DateField')()),
            ('start_date', self.gf('django.db.models.fields.DateField')()),
            ('end_date', self.gf('django.db.models.fields.DateField')()),
            ('to_pay', self.gf('django.db.models.fields.FloatField')(default=0)),
            ('payed', self.gf('django.db.models.fields.FloatField')(default=0)),
            ('different', self.gf('django.db.models.fields.FloatField')(default=0)),
            ('debit', self.gf('django.db.models.fields.FloatField')(default=0)),
            ('reason', self.gf('django.db.models.fields.CharField')(max_length=250, null=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
        ))
        db.send_create_signal('home', ['BillingX'])

        # Adding model 'UserContact'
        db.create_table('home_usercontact', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
            ('contacts', self.gf('django.db.models.fields.TextField')(null=True)),
            ('about', self.gf('django.db.models.fields.TextField')(null=True)),
            ('url_map', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
            ('url_priceList', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
        ))
        db.send_create_signal('home', ['UserContact'])

        # Adding model 'UserProfile'
        db.create_table('home_userprofile', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, null=True)),
            ('is_new', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('is_payed', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('favorite_animal', self.gf('django.db.models.fields.CharField')(default='Dragons.', max_length=20)),
        ))
        db.send_create_signal('home', ['UserProfile'])


    def backwards(self, orm):
        # Deleting model 'Category'
        db.delete_table('home_category')

        # Deleting model 'Regions'
        db.delete_table('home_regions')

        # Deleting model 'Announcements'
        db.delete_table('home_announcements')

        # Deleting model 'News'
        db.delete_table('home_news')

        # Deleting model 'Section'
        db.delete_table('home_section')

        # Deleting model 'Goods'
        db.delete_table('home_goods')

        # Deleting model 'Partners'
        db.delete_table('home_partners')

        # Deleting model 'Albums'
        db.delete_table('home_albums')

        # Deleting model 'Photos'
        db.delete_table('home_photos')

        # Deleting model 'BillingLog'
        db.delete_table('home_billinglog')

        # Deleting model 'BillingX'
        db.delete_table('home_billingx')

        # Deleting model 'UserContact'
        db.delete_table('home_usercontact')

        # Deleting model 'UserProfile'
        db.delete_table('home_userprofile')


    models = {
        'auth.group': {
            'Meta': {'object_name': 'Group'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'home.albums': {
            'Meta': {'object_name': 'Albums'},
            'description': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'})
        },
        'home.announcements': {
            'Meta': {'object_name': 'Announcements'},
            'a_date': ('django.db.models.fields.DateField', [], {}),
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['home.Category']"}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'popularity': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['home.Regions']", 'null': 'True'}),
            'short_description': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'})
        },
        'home.billinglog': {
            'Meta': {'object_name': 'BillingLog'},
            'a_date': ('django.db.models.fields.DateField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'reason': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'}),
            'value': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True'})
        },
        'home.billingx': {
            'Meta': {'object_name': 'BillingX'},
            'a_date': ('django.db.models.fields.DateField', [], {}),
            'debit': ('django.db.models.fields.FloatField', [], {'default': '0'}),
            'different': ('django.db.models.fields.FloatField', [], {'default': '0'}),
            'end_date': ('django.db.models.fields.DateField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'payed': ('django.db.models.fields.FloatField', [], {'default': '0'}),
            'reason': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True'}),
            'start_date': ('django.db.models.fields.DateField', [], {}),
            'to_pay': ('django.db.models.fields.FloatField', [], {'default': '0'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'})
        },
        'home.category': {
            'Meta': {'object_name': 'Category'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'})
        },
        'home.goods': {
            'Meta': {'object_name': 'Goods'},
            'a_date': ('django.db.models.fields.DateField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'iLID': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'iUID': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'popularity': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['home.Regions']"}),
            'section': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['home.Section']"}),
            'short_description': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'})
        },
        'home.news': {
            'Meta': {'object_name': 'News'},
            'a_date': ('django.db.models.fields.DateField', [], {}),
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['home.Category']"}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'popularity': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'short_description': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'})
        },
        'home.partners': {
            'Meta': {'object_name': 'Partners'},
            'description': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'url_to': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
        },
        'home.photos': {
            'Meta': {'object_name': 'Photos'},
            'a_date': ('django.db.models.fields.DateField', [], {}),
            'album': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['home.Albums']"}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'popularity': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'})
        },
        'home.regions': {
            'Meta': {'object_name': 'Regions'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'id_parent': ('django.db.models.fields.IntegerField', [], {'default': '-1', 'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'})
        },
        'home.section': {
            'Meta': {'object_name': 'Section'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'region': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['home.Regions']"}),
            'short_description': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '250'}),
            'url_pic': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'})
        },
        'home.usercontact': {
            'Meta': {'object_name': 'UserContact'},
            'about': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'contacts': ('django.db.models.fields.TextField', [], {'null': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'url_map': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'url_priceList': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
        },
        'home.userprofile': {
            'Meta': {'object_name': 'UserProfile'},
            'favorite_animal': ('django.db.models.fields.CharField', [], {'default': "'Dragons.'", 'max_length': '20'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_new': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_payed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'null': 'True'})
        }
    }

    complete_apps = ['home']